﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using IDAL;
using Model;

namespace BLL
{
    public class TestItem_SPC
    {
        private static readonly ITestItem_SPC dal = DALFactory.DataAccess.CreateTestItem_SPC();

        public DataSet GetSPC(string productTypeID, string testItemName, DateTime starttime, DateTime stoptime)
        {
            return dal.GetSPC(productTypeID, testItemName, starttime, stoptime);
        }

        public DataSet GetSPCbyENA(string productTypeID, string testItemName,string ENAID, DateTime starttime, DateTime stoptime)
        {
            return dal.GetSPCbyENA(productTypeID, testItemName,ENAID, starttime, stoptime);
        }

        //public IList<SPCItemInfo> GetSPCItem(string productTypeID, string testItemName, DateTime starttime, DateTime stoptime)
        //{
        //    return dal.GetSPCItem(productTypeID, testItemName, starttime, stoptime);
        //}

        //public IList<SPCInfo> GetSPCbyENA(string productTypeID, string TestItemName, string ENAID, DateTime starttime, DateTime stoptime)
        //{
        //    return dal.GetSPCbyENA(productTypeID, TestItemName, ENAID, starttime, stoptime);
        //}

        //public IList<SPCItemInfo> GetSPCItembyENA(string productTypeID, string TestItemName, string ENAID, DateTime starttime, DateTime stoptime)
        //{
        //    return dal.GetSPCItembyENA(productTypeID, TestItemName, ENAID, starttime, stoptime);
        //}
    }
}
